package com.cccyy.data.list;

import cn.hutool.core.util.StrUtil;

import java.util.ArrayList;

public class ListStringTest {
    public static void main(String[] args) {
        ArrayList<String> strings = new ArrayList<>();
        strings.add("abc");
        strings.add("def");
        strings.add("ghi");
        String join = String.join(",", strings);
        System.out.println(join);


        ArrayList<Long> lllls = new ArrayList<>();
        lllls.add(123456L);
        lllls.add(123456L);
        lllls.add(123456L);
        String tttt = StrUtil.join(",", lllls);
        System.out.println(tttt);
    }
}
